package lab01;

import java.util.Scanner;

public class Test7 {
    public static void main(String[] args) {
        System.out.println("请输入学生的成绩：");
        int n=new Scanner(System.in).nextInt();
        if (n>=70&&n<85){
            System.out.println("B级");
        }else if (n>=85){
            System.out.println("A级");
        }else if (n>=60&&n<70){
            System.out.println("C级");
        }else if (n<60){
            System.out.println("D级");
        }else {
            System.out.println("请输入正确的成绩");
        }
    }
}
